package com.arpa.ntocc.common.common.validator.annotation;

import com.arpa.ntocc.common.common.validator.aspect.AccountPhoneExistValidator;

import javax.validation.Constraint;
import java.lang.annotation.*;

/**
 * 手机号重复校验注解
 * @author liuxr
 * @date 2021/11/13 11:10
 */
@Documented
@Constraint(validatedBy = AccountPhoneExistValidator.class)
@Target({ElementType.PARAMETER, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface AccountPhoneExistConstraint {
    String message() default "手机号已存在";
    Class[] groups() default {};
    Class[] payload() default {};
}
